#!/usr/bin/env bash
# 设置终端代理
host="http://127.0.0.1:7890/"
# 设置使用代理
alias setproxy="export http_proxy=${host}; export https_proxy=${host}; echo 'Set proxy successfully'"
# 设置取消使用代理
alias unsetproxy="unset http_proxy; unset https_proxy; echo 'Unset proxy successfully'"


tmux () {
    TMUX="command tmux ${@}"
    SHELL=$SHELL script -qO /dev/null -c "eval $TMUX";
}

